import express from "express";
import {
  registerUser,
  loginUser,
  getUserInfoProfile,
} from "./../controllers/userController.js";
import { protect } from "../middleware/authMiddleware.js";

const userRouter = express.Router();

userRouter.post("/register", registerUser);
userRouter.post("/login", loginUser);
userRouter.get("/profile", protect, getUserInfoProfile);

export default userRouter;
